#include "mainwindow.h"
#include <QIcon>
#include <QApplication>
#include <QProcess>
#include <QDesktopWidget>
int main(int argc, char *argv[])
{
    //自动适应高分辨率
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

    QProcess process;
//    process.start("sleep 30");
//    process.waitForFinished();
    QApplication a(argc, argv);

    MainWindow w;
    QRect rect = w.frameGeometry();

    QDesktopWidget desktop;

    QPoint centerPoint = desktop.availableGeometry().center();

    rect.moveCenter(centerPoint);

    w.move(rect.topLeft());

    w.show();

    return a.exec();
}
